package cn.edu.scau.cmi.chenyuesong.comprehensive;

import cn.edu.scau.cmi.chenyuesong.client.AdapterClient;
import cn.edu.scau.cmi.chenyuesong.client.ConsistentCompositeClient;
import cn.edu.scau.cmi.chenyuesong.client.FactoryClient;
import cn.edu.scau.cmi.chenyuesong.client.HibernateClient;
import cn.edu.scau.cmi.chenyuesong.client.InterProgrammingClient;
import cn.edu.scau.cmi.chenyuesong.client.SafeCompositeClient;
import cn.edu.scau.cmi.chenyuesong.client.SingletonClient;
import javafx.fxml.FXML;

import javafx.scene.control.Button;
import javafx.stage.Stage;

public class myController {
	@FXML
	Button btn1,btn2,btn3,btn4,btn5,btn6,btn7;
	public void eventButton_1() {
		new InterProgrammingClient().start(new Stage());
	}
	public void eventButton_2() {
		new SingletonClient().start(new Stage());
	}
	public void eventButton_3() {
		new FactoryClient().start(new Stage());
	}
	public void eventButton_4() {
		new AdapterClient().start(new Stage());
	}
	public void eventButton_5() throws Exception {
		new ConsistentCompositeClient().start(new Stage());
	}
	public void eventButton_6() throws Exception {
		new SafeCompositeClient().start(new Stage());
	}
	public void eventButton_7() {
		new HibernateClient().start(new Stage());
	}
}
